﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020009E5 RID: 2533
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class KillMonster : IMessage<KillMonster>, IMessage, IEquatable<KillMonster>, IDeepCloneable<KillMonster>, IBufferMessage
	{
		// Token: 0x17002011 RID: 8209
		// (get) Token: 0x0600719A RID: 29082 RVA: 0x00130258 File Offset: 0x0012E458
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<KillMonster> Parser
		{
			get
			{
				return KillMonster._parser;
			}
		}

		// Token: 0x17002012 RID: 8210
		// (get) Token: 0x0600719B RID: 29083 RVA: 0x0013025F File Offset: 0x0012E45F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return KillMonsterReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002013 RID: 8211
		// (get) Token: 0x0600719C RID: 29084 RVA: 0x00130271 File Offset: 0x0012E471
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return KillMonster.Descriptor;
			}
		}

		// Token: 0x0600719D RID: 29085 RVA: 0x00130278 File Offset: 0x0012E478
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public KillMonster()
		{
		}

		// Token: 0x0600719E RID: 29086 RVA: 0x00130280 File Offset: 0x0012E480
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public KillMonster(KillMonster other) : this()
		{
			this.killNum_ = other.killNum_;
			this.monsterId_ = other.monsterId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600719F RID: 29087 RVA: 0x001302B1 File Offset: 0x0012E4B1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public KillMonster Clone()
		{
			return new KillMonster(this);
		}

		// Token: 0x17002014 RID: 8212
		// (get) Token: 0x060071A0 RID: 29088 RVA: 0x001302B9 File Offset: 0x0012E4B9
		// (set) Token: 0x060071A1 RID: 29089 RVA: 0x001302C1 File Offset: 0x0012E4C1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint KillNum
		{
			get
			{
				return this.killNum_;
			}
			set
			{
				this.killNum_ = value;
			}
		}

		// Token: 0x17002015 RID: 8213
		// (get) Token: 0x060071A2 RID: 29090 RVA: 0x001302CA File Offset: 0x0012E4CA
		// (set) Token: 0x060071A3 RID: 29091 RVA: 0x001302D2 File Offset: 0x0012E4D2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MonsterId
		{
			get
			{
				return this.monsterId_;
			}
			set
			{
				this.monsterId_ = value;
			}
		}

		// Token: 0x060071A4 RID: 29092 RVA: 0x001302DB File Offset: 0x0012E4DB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as KillMonster);
		}

		// Token: 0x060071A5 RID: 29093 RVA: 0x001302E9 File Offset: 0x0012E4E9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(KillMonster other)
		{
			return other != null && (other == this || (this.KillNum == other.KillNum && this.MonsterId == other.MonsterId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060071A6 RID: 29094 RVA: 0x00130328 File Offset: 0x0012E528
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.KillNum != 0U)
			{
				num ^= this.KillNum.GetHashCode();
			}
			if (this.MonsterId != 0U)
			{
				num ^= this.MonsterId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060071A7 RID: 29095 RVA: 0x00130380 File Offset: 0x0012E580
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060071A8 RID: 29096 RVA: 0x00130388 File Offset: 0x0012E588
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060071A9 RID: 29097 RVA: 0x00130394 File Offset: 0x0012E594
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.MonsterId != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.MonsterId);
			}
			if (this.KillNum != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.KillNum);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060071AA RID: 29098 RVA: 0x001303F0 File Offset: 0x0012E5F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.KillNum != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.KillNum);
			}
			if (this.MonsterId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MonsterId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060071AB RID: 29099 RVA: 0x00130448 File Offset: 0x0012E648
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(KillMonster other)
		{
			if (other == null)
			{
				return;
			}
			if (other.KillNum != 0U)
			{
				this.KillNum = other.KillNum;
			}
			if (other.MonsterId != 0U)
			{
				this.MonsterId = other.MonsterId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060071AC RID: 29100 RVA: 0x00130498 File Offset: 0x0012E698
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060071AD RID: 29101 RVA: 0x001304A4 File Offset: 0x0012E6A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 24U)
				{
					if (num != 56U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.KillNum = input.ReadUInt32();
					}
				}
				else
				{
					this.MonsterId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04002B61 RID: 11105
		private static readonly MessageParser<KillMonster> _parser = new MessageParser<KillMonster>(() => new KillMonster());

		// Token: 0x04002B62 RID: 11106
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002B63 RID: 11107
		public const int KillNumFieldNumber = 7;

		// Token: 0x04002B64 RID: 11108
		private uint killNum_;

		// Token: 0x04002B65 RID: 11109
		public const int MonsterIdFieldNumber = 3;

		// Token: 0x04002B66 RID: 11110
		private uint monsterId_;
	}
}
